<?php
namespace app\models;

use app\models\Proxy_company;
use app\models\Express;
use app\models\Income;
use app\models\Bank;
use app\models\Staff;

class ModelFactory
{
    public function get_proxy_company()
    {
        return new Proxy_company();
    }

    public function express()
    {
        return new Express();   
    }

    public function income()
    {
        return new Income();
    }

    public function bank()
    {
        return new Bank_bill();
    }
    
    public function staff()
    {
        return new Staff;
    }

    public function loadModel($class)
    {
        $refelect = new \ReflectionClass($class);
        return $refelect->newInstance();

    }
    

}